﻿<sap:ActivityDesigner x:Class="DesignerBase"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation"
    xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation"
    xmlns:sapp="clr-namespace:System.Activities.Presentation.PropertyEditing;assembly=System.Activities.Presentation"
    xmlns:kam="clr-namespace:KumaSystem.Activities.MSSQL" 
    mc:Ignorable="d" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    >

    <sap:ActivityDesigner.Resources>
        <ResourceDictionary>
            <DataTemplate x:Key="ArgumentBoolLiteralPropertyEditor" >
                <DataTemplate.Resources>
                    <kam:InArgumentToBoolConverter x:Key="InArgumentBoolConverter"/>
                </DataTemplate.Resources>
                <CheckBox
                    IsChecked="{Binding Path=Value, Mode=TwoWay, Converter={StaticResource InArgumentBoolConverter}}"
                    />
            </DataTemplate>

            <DataTemplate x:Key="ArgumentFilepathPropertyEditor">
                <DataTemplate.Resources>
                    <kam:InArgumentToStringConverter x:Key="InArgumentStringConverter"/>
                </DataTemplate.Resources>
                <Border BorderThickness ="1">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <TextBox Grid.Column="0" Text="{Binding Path=Value, Converter={StaticResource InArgumentStringConverter}}"/>
                        <sapp:EditModeSwitchButton Grid.Column="1"/>
                    </Grid>
                </Border>
            </DataTemplate>

        </ResourceDictionary>
    </sap:ActivityDesigner.Resources>
    
</sap:ActivityDesigner>

